﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="MSH.Common.Business" assembly="Common">

<class name="UserNotification" table="UserNotification">

  <id name="ID">
    <generator class="native">
      <param name="sequence">SeqUserNotificationID</param>
    </generator>
  </id>

  <property name="Latitude">
    <column name="Latitude" not-null="true"  />
  </property>

  <property name="Longitude">
    <column name="Longitude" not-null="true"  />
  </property>

  <property name="Range">
    <column name="Range" not-null="true"  />
  </property>
  
  <many-to-one name="Friend"
    column="Friend" cascade="none" fetch="join" not-null="true"/>

  <many-to-one name="User"
    column="ParentUser" cascade="none" fetch="join" not-null="true"/>

</class>

</hibernate-mapping>

